module Base
{
	model fhqPrevia
	{
		mesh = vehicles/vehicle_fhqprevia|fhqprevia,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhqPreviaMirrorL
	{
		mesh = vehicles/vehicle_fhqprevia|fhqpreviaMirrorL,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhqPreviaMirrorR
	{
		mesh = vehicles/vehicle_fhqprevia|fhqpreviaMirrorR,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhqPreviaRails
	{
		mesh = vehicles/vehicle_fhqprevia|fhqpreviaRails,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	model fhqPreviaWing
	{
		mesh = vehicles/vehicle_fhqprevia|fhqpreviaWing,
		shader = vehicle_multiuv,
		invertX = FALSE,
		scale = 0.47,
	}
	template vehicle fhqPrevia
	{
		mechanicType = 1,
		offRoadEfficiency = 0.7,
		engineRepairLevel = 4,
		playerDamageProtection = 0.8,
		engineRPMType = van,

		spawnOffsetY = 0.12999995,

		sound
		{
			alarmLoop = VehicleAlarmA VehicleAlarmB VehicleAlarmC VehicleAlarmD VehicleAlarmE,
			engine = VehicleEngineSmallCar,
			engineStart = VehicleEngineSmallCar,
			engineTurnOff = VehicleEngineSmallCar,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailSmallCar,
		}

		extents = 0.8681 0.7473 2.2967,
		mass = 875,
		physicsChassisShape = 0.8681 0.7473 2.2967,
        centerOfMassOffset = 0.0000 0.3791 0.0000,
        shadowExtents = 0.8656 2.4332,
        shadowOffset = 0.0000 0.0000,
		engineForce = 2750,
		engineLoudness = 75,
		engineQuality = 80,
		maxSpeed = 75f,
		gearRatioCount = 4,
		stoppingMovementForce = 2.0f,
		rollInfluence = 0.7f,
		steeringIncrement = 0.03,
		steeringClamp = 0.3,
		suspensionStiffness = 25,
		suspensionCompression = 3.21,
		suspensionDamping = 2.92,
		maxSuspensionTravelCm = 18,
		suspensionRestLength = 0.35f,
		wheelFriction = 1.5f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 6,

		wheel FrontLeft
        {
            front = true,
            offset = 0.3571 -0.3513 0.7253,
            radius = 0.17f,
            width = 0.25f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.3571 -0.3513 0.7253,
            radius = 0.17f,
            width = 0.25f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.3571 -0.3513 -0.6593,
            radius = 0.17f,
            width = 0.25f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.3571 -0.3513 -0.6593,
            radius = 0.17f,
            width = 0.25f,
        }

		template = PassengerSeat6,

		passenger FrontLeft
        {
            position inside
            {
                offset = 0.1648 -0.0275 0.2143,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 0.5769 -0.4341 0.1374,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            position inside
            {
                offset = -0.1648 -0.0275 0.2143,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.5769 -0.4341 0.1374,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        passenger MiddleLeft
        {
            position inside
            {
                offset = 0.1648 -0.0275 -0.2637,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
            }
        }

        passenger MiddleRight
        {
            position inside
            {
                offset = -0.1648 -0.0275 -0.2637,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.5769 -0.4341 -0.0495,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatMiddleRight,
            }
        }

        passenger RearLeft
        {
            position inside
            {
                offset = 0.1648 -0.0275 -0.6209,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
            }
        }

        passenger RearRight
        {
            position inside
            {
                offset = -0.1648 -0.0275 -0.6209,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
            }
        }

        area Engine
        {
            xywh = 0.0000 1.3462 0.8681 0.3956,
        }

        area TruckBed
        {
            xywh = 0.0000 -1.3462 0.8681 0.3956,
        }

        area SeatFrontLeft
        {
            xywh = 0.6758 0.3187 0.4835 0.4835,
        }

        area SeatFrontRight
        {
            xywh = -0.6758 0.3187 0.4835 0.4835,
        }

        area SeatMiddleRight
        {
            xywh = -0.6758 -0.2143 0.4835 0.4835,
        }

        area SeatMiddleLeft
        {
            xywh = 0.6758 -0.2143 0.4835 0.4835,
        }

        area SeatRearRight
        {
            xywh = -0.6758 -0.7253 0.4835 0.4835,
        }

        area SeatRearLeft
        {
            xywh = 0.6758 -0.7253 0.4835 0.4835,
        }

        area GasTank
        {
            xywh = 0.6758 -0.4945 0.4835 0.4835,
        }

        area TireFrontLeft
        {
            xywh = 0.6758 0.7363 0.4835 0.4835,
        }

        area TireFrontRight
        {
            xywh = -0.6758 0.7363 0.4835 0.4835,
        }

        area TireRearLeft
        {
            xywh = 0.6758 -0.6538 0.4835 0.4835,
        }

        area TireRearRight
        {
            xywh = -0.6758 -0.6538 0.4835 0.4835,
        }

		template = TrunkDoor,

		part TrunkDoor
		{
			anim Open
			{
				sound = VehicleTrunkOpenSportsCar,
			}

			anim Close
			{
				sound = VehicleTrunkCloseSportsCar,
			}

			anim Lock
			{
				sound = LockVehicleDoorSportsCar,
			}

			anim Unlock
			{
				sound = UnlockVehicleDoorSportsCar,
			}

			anim IsLocked
			{
				sound = VehicleDoorIsLockedSportsCar,
			}

			table uninstall
			{
				requireUninstalled = WindshieldRear,
			}

			hasLightsRear = true,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,
		}

		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatMiddleLeft,
		template = Seat/part/SeatMiddleRight,
		template = Seat/part/SeatRearLeft,
		template = Seat/part/SeatRearRight,

		part SeatRear*
		{
			door =,
		}

		template = GloveBox,
		template = GasTank,
		template = Battery,
		template = Engine,
		template = Muffler,
		template = EngineDoor,

		part Heater
		{
			category = engine,

			lua
			{
				update = Vehicles.Update.Heater,
			}
		}

		part PassengerCompartment
		{
			category = nodisplay,

			lua
			{
				update = Vehicles.Update.PassengerCompartment,
			}
		}

		template = Windshield/part/Windshield,
		template = Windshield/part/WindshieldRear,

		part WindshieldRear
		{
			table install
			{
				requireInstalled = TrunkDoor,
			}
		}

		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,
		template = Window/part/WindowMiddleLeft,
		template = Window/part/WindowMiddleRight,

		part WindowMiddleLeft
		{
			area = SeatFrontLeft,
			parent =,

			table install
			{
				requireInstalled =,
			}
		}

		part Window*
		{
			anim Open
			{
				sound = VehicleWindowElectricOpen,
			}

			anim Close
			{
				sound = VehicleWindowElectricClose,
			}
		}

		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,

		part DoorFrontLeft
		{
			model Default
			{
				file = fhqPreviaMirrorL,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		part DoorFrontRight
		{
			model Default
			{
				file = fhqPreviaMirrorR,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		template = Door/part/DoorMiddleRight,
		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = fhq92EconolineWheelLeft,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				scale = 0.40,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = fhq92EconolineWheelRight,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				scale = 0.40,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = fhq92EconolineWheelLeft,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				scale = 0.40,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = fhq92EconolineWheelRight,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				scale = 0.40,
			}
		}

		template = Brake,
		template = Suspension,
		template = Radio,
		template = Headlight,

		attachment trailer
        {
            offset = 0.0000 -0.1910 -1.1647,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 -0.1992 1.1366,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
		
	}
	template vehicle fhqPrevia_Col
	{
		physics box
        {
            offset = 0.0000 0.1737 0.0000,
            extents = 0.8681 0.3297 2.2088,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.4780 -0.8709,
            extents = 0.7802 0.4835 0.2418,
            rotate = 33.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.5330 -0.2222,
            extents = 0.7802 0.4286 1.2308,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.3901 0.6593,
            extents = 0.7802 0.8242 0.3516,
            rotate = -60.0000 0.0000 0.0000,
        }
		
	}
	vehicle fhqPrevia
    {
        template! = fhqPrevia,

        model
        {
            file = fhqPrevia,
            scale = 1.8200,
            offset = 0.0000 0.3187 0.0110,
        }

        skin
        {
            texture = Vehicles/vehicle_fhqPrevia_shell,
        }

        textureMask = Vehicles/vehicle_fhqPrevia_mask,
        textureLights = Vehicles/vehicle_fhqPrevia_lights,
        textureDamage1Overlay = Vehicles/Veh_Blood_Mask,
        textureDamage2Overlay = Vehicles/Veh_Blood_Hvy,
        textureDamage1Shell = Vehicles/Veh_Damage1,
        textureDamage2Shell = Vehicles/Veh_Damage2,
        textureRust = Vehicles/Veh_Rust,
		
        extents = 0.8681 0.7473 2.2967,
        physicsChassisShape = 0.8681 0.7473 2.2967,
        centerOfMassOffset = 0.0000 0.3791 0.0000,
        shadowExtents = 0.8656 2.4332,
        shadowOffset = 0.0000 0.0000,

        wheel FrontLeft
        {
            front = true,
            offset = 0.3571 -0.3516 0.7253,
            radius = 0.17f,
            width = 0.25f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.3571 -0.3516 0.7253,
            radius = 0.17f,
            width = 0.25f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.3571 -0.3516 -0.6593,
            radius = 0.17f,
            width = 0.25f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.3571 -0.3516 -0.6593,
            radius = 0.17f,
            width = 0.25f,
        }

        passenger FrontLeft
        {
            position inside
            {
                offset = 0.1648 -0.0275 0.2143,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 0.5769 -0.4341 0.1374,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            position inside
            {
                offset = -0.1648 -0.0275 0.2143,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.5769 -0.4341 0.1374,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        passenger MiddleLeft
        {
            position inside
            {
                offset = 0.1648 -0.0275 -0.2637,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
            }
        }

        passenger MiddleRight
        {
            position inside
            {
                offset = -0.1648 -0.0275 -0.2637,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -0.5769 -0.4341 -0.0495,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatMiddleRight,
            }
        }

        passenger RearLeft
        {
            position inside
            {
                offset = 0.1648 -0.0275 -0.6209,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
            }
        }

        passenger RearRight
        {
            position inside
            {
                offset = -0.1648 -0.0275 -0.6209,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
            }
        }

        area Engine
        {
            xywh = 0.0000 1.3462 0.8681 0.3956,
        }

        area TruckBed
        {
            xywh = 0.0000 -1.3462 0.8681 0.3956,
        }

        area SeatFrontLeft
        {
            xywh = 0.6758 0.3187 0.4835 0.4835,
        }

        area SeatFrontRight
        {
            xywh = -0.6758 0.3187 0.4835 0.4835,
        }

        area SeatMiddleRight
        {
            xywh = -0.6758 -0.2143 0.4835 0.4835,
        }

        area SeatMiddleLeft
        {
            xywh = 0.6758 -0.2143 0.4835 0.4835,
        }

        area SeatRearRight
        {
            xywh = -0.6758 -0.7253 0.4835 0.4835,
        }

        area SeatRearLeft
        {
            xywh = 0.6758 -0.7253 0.4835 0.4835,
        }

        area GasTank
        {
            xywh = 0.6758 -0.4945 0.4835 0.4835,
        }

        area TireFrontLeft
        {
            xywh = 0.6758 0.7363 0.4835 0.4835,
        }

        area TireFrontRight
        {
            xywh = -0.6758 0.7363 0.4835 0.4835,
        }

        area TireRearLeft
        {
            xywh = 0.6758 -0.6538 0.4835 0.4835,
        }

        area TireRearRight
        {
            xywh = -0.6758 -0.6538 0.4835 0.4835,
        }

        useChassisPhysicsCollision = false,
        template! = fhqPrevia_Col,

        physics box
        {
            offset = 0.0000 0.1737 0.0000,
            extents = 0.8681 0.3297 2.2088,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.4780 -0.8709,
            extents = 0.7802 0.4835 0.2418,
            rotate = 33.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.5330 -0.2222,
            extents = 0.7802 0.4286 1.2308,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.3901 0.6593,
            extents = 0.7802 0.8242 0.3516,
            rotate = -60.0000 0.0000 0.0000,
        }

        attachment trailer
        {
            offset = 0.0000 -0.1910 -1.1647,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 -0.1992 1.1366,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
    }
}
